/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp;

import fwdisp.gui.MainFrame;
import java.io.File;

/**
 *
 * @author rbs
 */
public class Main {

    static MainFrame frame;
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        frame = new MainFrame();

    }
    
    public static MainFrame getMainframe()
    {
        return frame;
    }
    
    public static final String getProgramPath() {
        
        File file = new File(Main.class.getProtectionDomain().getCodeSource().getLocation().getFile());
        
        if (file.getName().equals("classes"))
            file = file.getParentFile();
        
        if (file.getName().equals("build"))
            file = file.getParentFile();
        
        System.out.println("Path: "  +  file.getAbsolutePath());
        
        return file.getAbsolutePath();
    }

}
